﻿/*CREATE TRIGGER [dbo].[Areas_DeletionTrigger] 
    ON [Areas] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Areas_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[AreaGuid] = [Areas_Tombstone].[AreaGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Areas_Tombstone] 
    ([AreaGuid], DeletionDate)
    SELECT [AreaGuid], GETUTCDATE()
    FROM deleted 
END*/